package week2;

public class MathUtil {
    private MathUtil() {
    }

    public static int max(int num1,int num2,int num3){
        int temp = num1 > num2 ? num1 : num2;
        int max = temp > num3 ? temp : num3;
        return max;
    }

    public static int min(int num1,int num2,int num3,int num4){
        int temp1 = num1 < num2 ? num1 : num2;
        int temp2 = num3 < temp1 ? num3 : temp1;
        int min = num4 < temp2 ? num4 : temp2;
        return min;
    }

    public static int mul (int num1,int num2,int num3){
        return num1 * num2 * num3;
    }

    public static int nextInt(int num){
        return num += 1;
    }

}
